package source.model.bonus;

import source.model.*;

public class ExplorerBonus extends UnitBonus {
	
	public ExplorerBonus(){
		odBonus=0;
		ddBonus=0;
		armorBonus=0;
		healthBonus=0;
		rangeBonus=0;
		speedBonus=(float)0.0;
	}
	
	public void increaseODBonus(int bonus){
		odBonus+=0;
	}
	
	public void increaseDDBonus(int bonus){
		ddBonus+=bonus;
	}
	
	public void increaseArmorBonus(int bonus){
		armorBonus+=bonus;
	}
	
	public void increaseHealthBonus(int bonus){
		healthBonus+=bonus;
	}
	
	public void increaseSpeedBonus(float bonus){
		speedBonus+=bonus;
	}
	
	public void increaseRangeBonus(int bonus){
		rangeBonus+=0;
	}
	
	public void apply(DataHandler dh){
		Unit unit=(Unit)dh.getCurrentSelection();
		unit.modDDBonus(ddBonus);
		unit.modArmorBonus(armorBonus);
		unit.modHealthBonus(healthBonus);
		unit.modSpeedBonus(speedBonus);
		unit.modODBonus(odBonus);
	}
}
